/**
 * 
 */
package com.cr.backbone.ajax.test;

import java.util.ArrayList;
import java.util.Collection;

import com.opensymphony.xwork2.ActionSupport;
import com.readnote.book.model.Book;
import com.readnote.book.service.BookService;

/**
 * @project RaedNote
 * @version 1.0
 * @company 
 * @fileDescribe
 * @fileType AjaxTest AjaxTest.java
 * @author xianghua.hu
 * @date 2012-5-16 下午04:24:43
 */
/**
 * @author huxh
 *
 */
public class AjaxBookAction extends ActionSupport {
	//Ajax Books
	private Collection<Book> books=new ArrayList<Book>();
	
	private BookService bookService;
	
	/**
	 * 
	 * @methodDescribe
	 * @return
	 * @author xianghua.hu
	 * @date 2012-5-17
	 */
	public String ajaxBooks(){
		books = bookService.getList();
		return SUCCESS;
	}

	public Collection<Book> getBooks() {
		return books;
	}

	public void setBooks(Collection<Book> books) {
		this.books = books;
	}


	public void setBookService(BookService bookService) {
		this.bookService = bookService;
	}

	
	
	
}
 